<?php

namespace app\payment\validate;

use think\Validate;

/**
 * 钱包操作验证器
 */
class CashChange extends Validate {

    //定义验证规则
    protected $rule = [
        'order_id|订单号' => 'require',
        'merchant_id|商户号' => 'require|length:8',
        'add_subtract|变化方式' => 'require',
        'trade_type|交易类型' => 'require',
        'cash|金额' => 'require|float|egt:0.01|elt:10000000',
        'remark|操作备注' => 'require',
    ];
    //定义验证提示
    protected $message = [
    ];
    //定义验证场景
    protected $scene = [
    ];

}
